package com.binance.binancedemo

import android.os.Bundle
import android.support.v4.app.FragmentActivity
import com.binance.binancedemo.fragment.QuotationTabFragment

/**
 * Created by xiangchong on 2017/12/15.
 */
open class ContentActivity : FragmentActivity(){

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.a_content)
        initFragment()
    }

    private fun initFragment() {
        val transaction = supportFragmentManager.beginTransaction()
        transaction.add(R.id.fl_container, QuotationTabFragment(), "tab")
        transaction.commitAllowingStateLoss()
    }
}